package arithmetic.other;

/**
 * 一个面试题：考察String
 * @author lidd
 *
 */
public class StringTest {
	private static String hello = "hello";

	public static void main(String[] args) {
		String hello = "hello";
		String llo = "llo";
		System.out.println(hello=="hello");
		System.out.println(hello=="he"+"llo");
		System.out.println(hello=="he"+llo);
		System.out.println(hello==StringTest.hello);
		System.out.println(hello==Test.hello);
		System.out.println(hello==StringTest.Test.hello);
	}

	class Test{
		private static final String hello = "hello";
	}
}
